Ext.ns('ru.proburo.oms.air.dao');

/**
 * ru.proburo.oms.air.dao.WritableCatalogStore
 * @extends Ext.data.SQLiteStore
 */
ru.proburo.oms.air.dao.WritableCatalogItemStore = Ext.extend(Ext.data.SQLiteStore, {
    constructor: function(config)
    {
        config = config || {};
        
        Ext.applyIf(config, {
            dbFile:    ru.proburo.oms.Constants.DATABASE,
            tableName: 'CatalogItem',
            key: 	   'rowid',
            
            fields: ru.proburo.oms.catalog.entities.NodeItem,
            
            autoSave:   false,
            remoteSort: true
        });
        
        ru.proburo.oms.air.dao.WritableCatalogItemStore.superclass.constructor.call(this, config);
    }
});